package com.talkweb.platform.commonapi.entity.db;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "BPM_AttachmentsList")
@ApiModel(value = "AttAchmentsList", description = "文件表")
public class AttAchmentsList implements Serializable {
	
	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
    private String orUnId;

	@Column(name = "docUnId")
	@ApiModelProperty(value = "公文id", required = false)
    private String docUnId;

    @Column(name = "processId")
	@ApiModelProperty(value = "流程id", required = false)
    private String processId;

    @Column(name = "nodeName")
   	@ApiModelProperty(value = "环节id", required = false)
    private String nodeName;

    @Column(name = "filePath")
   	@ApiModelProperty(value = "文件路径", required = false)
    private String filePath;

    @Column(name = "fileName")
   	@ApiModelProperty(value = "文件名", required = false)
    private String fileName;

    @Column(name = "fdName")
   	@ApiModelProperty(value = "附件字段name", required = false)
    private String fdName;

    @Column(name = "fileType")
   	@ApiModelProperty(value = "文件类型：0附件1正文", required = false)
    private String fileType;

    @Column(name = "fileSize")
   	@ApiModelProperty(value = "文件大小", required = false)
    private String fileSize;

    @Column(name = "deleteFlag")
   	@ApiModelProperty(value = "删除标志：0有效1失效", required = false)
    private String deleteFlag;

    @Column(name = "wf_addname")
   	@ApiModelProperty(value = "添加用户id", required = false)
    private String addName;

    @Column(name = "WF_AddName_CN")
   	@ApiModelProperty(value = "添加用户名", required = false)
    private String addNameCn;

    @Column(name = "WF_DocCreated")
   	@ApiModelProperty(value = "添加时间", required = false)
    private String docCreated;

    @Column(name = "pFileName")
   	@ApiModelProperty(value = "服务器文件名", required = false)
    private String pFileName;

    @Column(name = "gunId")
   	@ApiModelProperty(value = "", required = false)
    private String gunId;

    @Column(name = "wf_addname_deptid")
   	@ApiModelProperty(value = "添加用户部门id", required = false)
    private String addNameDeptId;

    @Column(name = "doctypeflag")
   	@ApiModelProperty(value = "文种名称", required = false)
    private String docTypeFlag;

    @Column(name = "wf_addname_allorgname")
   	@ApiModelProperty(value = "添加用户组织全称", required = false)
    private String addNameAllOrgName;

    @Column(name = "lockUserId")
   	@ApiModelProperty(value = "会签时锁定用户id", required = false)
    private String lockUserId;

    @Column(name = "unLockFlag")
   	@ApiModelProperty(value = "1：锁定，0：解锁", required = false)
    private String unLockFlag;

    @Column(name = "lockUserName")
   	@ApiModelProperty(value = "会签时锁定用户名", required = false)
    private String lockUserName;

    @Column(name = "lockTime")
   	@ApiModelProperty(value = "会签时锁定时间", required = false)
    private String lockTime;
    
    @ApiModelProperty(value = "公文ids", required = false)
    private Object[] docUnIds;

    private static final long serialVersionUID = 1L;

    
}